package cn.com.bluemoon.daps.model.entity;

import cn.com.bluemoon.daps.common.domain.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 申请发布审批状态表
 * </p>
 *
 * @author admin
 * @since 2020-08-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors
@ApiModel(value = "DapDataModelRecord", description = "申请发布审批状态表")
public class DapDataModelRecord extends BaseModel<DapDataModelRecord> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "变更类型, 1:新增表、2:变更表、3:修改表")
    private Integer changeType;

    @ApiModelProperty(value = "模型id")
    private String modelId;

    @ApiModelProperty(value = "审核状态, 1:已发布，2:草稿, 3:待审核，4:不通过")
    private Integer publicStatus;

    @ApiModelProperty(value = "发布内容")
    private String releaseContent;

    @ApiModelProperty(value = "变更单号")
    private String changeOrder;

    @ApiModelProperty(value = "申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime applicationTime;

    @ApiModelProperty(value = "变更者")
    private String applicationBy;

    @ApiModelProperty(value = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime releaseTime;

    @ApiModelProperty(value = "审核人")
    private String verifyBy;

    @ApiModelProperty(value = "描述信息")
    private String changeDesc;

    @ApiModelProperty(value = "描述信息")
    private String versionKey;


}
